﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Uranus.WeiStationAPI.Models
{
    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    public class CurrentProductSellResult
    {
        /// <summary>
        /// 卖出金额
        /// </summary>
        public decimal SellPrice { get; set; }

        /// <summary>
        /// 成功金额
        /// </summary>
        public decimal SuccessPrice { get; set; }

        /// <summary>
        /// 失败金额
        /// </summary>
        public decimal FailPrice { get; set; }

        /// <summary>
        /// 交易结果消息
        /// </summary>
        public string ResultMsg { get; set; }

        /// <summary>
        /// 卖出类型
        /// </summary>
        public CurrentProSellType SellType { get; set; }

        /// <summary>
        /// 汇付订单ID（UserTransferId）
        /// </summary>
        public string OrdId { get; set; }

        /// <summary>
        /// 确认交易结果缓存的Guid
        /// </summary>
        public string TransactionResultGuid { get; set; }

        /// <summary>
        /// 汇付请求响应码
        /// </summary>
        public string RespCode { get; set; }

        /// <summary>
        /// 汇付请求响应内容
        /// </summary>
        public string RespDesc { get; set; }

        /// <summary>
        /// 用户银行卡ID
        /// </summary>
        public int UserBankCardId { get; set; }
    }

    /// <summary>
    /// 获取产品卖出类型
    /// </summary>
    public enum CurrentProSellType
    {
        /// <summary>
        /// 卖出到余额
        /// </summary>
        SellOutUsable = 1,

        /// <summary>
        /// 卖出到银行卡
        /// </summary>
        SellOutBank = 2
    }
}